package com.xuebaopeng.xbp.sample;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.xuebaopeng.xbp.R;
import com.xuebaopeng.xbp.constants.AppStatusTracker;
import com.xuebaopeng.xbp.constants.ConstantValues;
import com.xuebaopeng.xbp.core.BaseActivity;


public class LoginActivity extends BaseActivity implements View.OnClickListener {
    private Button mLoginSubmitBtn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void setUpData() {
        setContentView(R.layout.activity_login);
        mLoginSubmitBtn = (Button) findViewById(R.id.mLoginSubmitBtn);
        mLoginSubmitBtn.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        AppStatusTracker.getInstance().setAppStatus(ConstantValues.STATUS_ONLINE);
        startActivity(new Intent(this, HomeActivity.class));
        finish();
    }
}